Key repeat fix for issue #3