Yep using stat(28) was the idea! other keyboard layouts didn't cross my mind - something I should have considered, cheers!