var KeyTester = new Class({
	Extends: FormHandler,
	
	initialize: function()
	{
		this.parent({
			keyMap: {
				'LoginForm:enter': this.login.bind(this)
			}
		});
	},
	
	login: function()
	{
		if (this.getLock('login'))
		{
			alert('The form is locked. Processing request...');
			return;
		}

		this.setLock('login')

		alert('Login form submitted!');
	}
});

window.addEvent('load', function(){
	new KeyTester();
});