enter and space keys are now working correctly