Making an object rotate when I hold a key down

So, I basically was wondering if anybody could help me with making a code so that when I push and hold a particular key down, an object in the scene changes its rotation and position? Any help is appreciated