//argument0 checks whether or not vertical speed
if(argument0) {
    if(!keyboard_check(ord('W')) && !keyboard_check(ord('S')))
        vspeed = 0;
} else {
    if(!keyboard_check(ord('D')) && !keyboard_check(ord('A')))
        hspeed = 0;
}
