Changing movement code to use switch instead of if

Unfortunately it is not working smoothly yet. Don't know how to check for
string using the case, and also if any other key is pressed it will do the
last movement input. Need to get that to just ignore it.
Fixed! Just had to reset the delta x y to 0 after moving the character. Still need to address how to input characters or strings.