Syntax of getting the event changed

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>