added rotation to the key 'r' and the 3 mouse buttons