Yes, you could do this with some javascript within some HTML. I'm wondering though if you could get by with having them click a button on the keyboard instead of one on the screen. If so, there is way you could track that very easily while they write their essay using the "k" parameter (see user guide, or I can elaborate here). However, if it needs to be an on screen button then we can discuss that more here.