replace
PHP Code:
if (Key.isDown(Key.RIGHT)){
    
_x += speed;
}
    
if (
Key.isDown(68)){
    
_x += speed;

with
PHP Code:
if (Key.isDown(Key.RIGHT) || Key.isDown(68)){
    
_x += speed;