Bug Fix & added first code for keypress event Handler