shadow/mac: add keyboard support