fixed keyboard bug where return wasn't being trapped properly