Just watch The Bad Sleep Well by Akira Kurasawa, it's a loose adaption, but takes a lot of aspects from Hamlet.