Used keypress event

Unable to test, should work however.