Fixed small bug when key is to