Fixed arrow key handling in Local console (fixes #279).