Added flush keys on start (handles button-mashing when a script crashes)