Added keydown method