Changed if statements in input to a switch structure. Added keys shift,
f and r