added key() and getc() functions

int key()
int key(int)
str getc()
fixed multiline commands on prompt