import re

regex = r"(?<!\S)(keyword)[\t ]*\r?\n[\t ]*(\w+)(?!\S)"
test_str = (" This is my keyword\n"
	" value")

matches = re.search(regex, test_str)

if matches:
	print('{} {}'.format(matches.group(1), matches.group(2)))
	