R and TAB now work properly by only checking the key once. It's ghetto rigged but it works