Updating input directions