Solution to issue #63 (posted by myself earlier)

Hi,
These changes aim to solve issue #63 (backspace and arrows got grouped with other keypresses)