 
 			# If enter key is pressed
 			if e.which is 13
-				@emit(Events.OnEnterKey, event)
+				@emit(Events.EnterKey, event)
 
 			# If backspace key
 			if e.which is 8
-				@emit(Events.OnBackSpaceKey, event)
+				@emit(Events.BackSpaceKey, event)
 
 	@define "value",
 		get: -> @input.value

	@isInArray: (value, array) ->
		return array.indexOf(value) > -1

	OnEnterKey: (cb) -> @on(Events.OnEnterKey, cb)
	OnBackSpaceKey: (cb) -> @on(Events.OnBackSpaceKey, cb)

{Layer} = require "./Layer"
{Events} = require "./Events"

Events.EnterKey  = "EnterKey"
Events.BackSpaceKey  = "BackSpaceKey"

class exports.InputLayer extends Layer
	constructor: (options={}) ->
