// Handle picture buffer navigation keys.
if (key == KeyEvent.VK_HOME) {
picture.moveToStartOfPictureBuffer();
}
if (key == KeyEvent.VK_LEFT) {
picture.moveBackOnePictureAction();
}
if (key == KeyEvent.VK_RIGHT) {
picture.moveForwardOnePictureAction();
}
if (key == KeyEvent.VK_UP) {