Code:

while(1)
{
if (key_d == 1) {move_right();}
if (key_a == 1) {move_left();}
if (key_a == 0 && key_d == 0) {move_stand();}
wait(1);
}



I think this is a possible way but in LiteC it's not necessary that you use brackets when you only call one function so this is also alowed:

Code:

while(1)
{
if (key_d == 1)
move_right();
if (key_a == 1)
move_left();
if (key_a == 0 && key_d == 0)
move_stand();
wait(1);
}