gZany App Lab doesn't have any keyDown() functions, so the best way to check is by combining event listeners. Try something like this:
var sKeyDown = false;
onEvent("screen1", "keydown", function(e) {
  if (e.key == "s") {
    sKeyDown = true;
  }
});
onEvent("screen1", "keyup", function(e) {
  if (e.key == "s") {
    sKeyDown = false;
  }
});
timedLoop(25, function() {
  if (sKeyDown) {
    setPosition("player", getXPosition("player"), getYPosition("player") + 5);
  }
});
But for any project that involves movement or key detection, Game Lab is the better choice by far. If you still want to use App Lab though, I would recommend using the canvas element instead of moving actual UI elements all over the place.