 {Events} = require "./Events"
 
 Events.EnterKey  = "EnterKey"
-Events.BackSpaceKey  = "BackSpaceKey"
+Events.BackspaceKey  = "BackspaceKey"
 Events.InputValueChange = "InputValueChange"
 Events.InputFocus = "InputFocus"
 Events.InputBlur = "InputBlur"

	@define "multiLine", @simpleProperty("multiLine", false)

	onEnterKey: (cb) -> @on(Events.EnterKey, cb)
	onBackSpaceKey: (cb) -> @on(Events.BackSpaceKey, cb)
	onInputChange: (cb) -> @on(Events.InputValueChange, cb)
	onInputFocus: (cb) -> @on(Events.InputFocus, cb)
	onInputBlur: (cb) -> @on(Events.InputBlur, cb)


			# If backspace key
			if e.which is 8
				@emit(Events.BackspaceKey, event)

			# Revert to placeholder
			if @value is ""
