added keyboard support for processing sketch