People usually put a link under "minimal example", please click and read it...
Your Update() function does stuff that should be done just once, I hope you don't call it every frame (and if you don't, then you should rename it). Also don't call SetKeyRepeatEnabled every time, do it just once.