Fixing bug and some potential bugs

Fixing potential bug in which events not meant to propagate where propagating.
Avoiding any actions on keyup when the key pressed is ENTER | Fixes #21