Add support for volume keys
Fix segfault on exit