Added w a s d event detection