Adapted 'keypress' library usage to version > 2.0

Fixes #15