Made keybuttons loop